package com.atguigu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 林允
 * @version 1.0
 * @description: TODO
 * @date 2023/5/14 20:55
 */
@Controller
public class TestViewController {

@RequestMapping("/test/view/thymeleaf")
public String testThymeleafView(){
    return "success";
}

@RequestMapping("test/view/forward")
    public String testInternalResourceView(){
    // 请求转发
    return "forward:/test/model";
}

@RequestMapping("/test/view/redirect")
    public String testRedirectView(){
    return "redirect:/test/model";
}

}
